package cn.lhn.ridersclub.mapper;

import cn.lhn.ridersclub.entity.ClubFollow;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ClubFollowMapper extends BaseMapper<ClubFollow> {

    @Select("select account_id from club_follow where club_id = ${clubId} order by account_id limit 3;")
    List<Long> list3FansId(@Param("clubId") Long clubId);
}
